
<include file="Public/ace_header" />
    <div class="row">
        <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" style="padding-left: 10px;padding-right: 10px;">
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="principal_id"> 用户名 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="用户名" id="principal_id" name="principal_id"  value="{$model['principal_id']|default=''}" validate-required="required:请填写用户名" <if condition="ACTION_NAME eq update">readonly</if>/>
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="club_name"> 旅行社名称 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="旅行社名称" id="club_name" name="club_name"  value="{$model['club_name']|default=''}" validate-required="required:请填写旅行社名称" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="address"> 旅行社地址 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="旅行社地址" id="address" name="address"  value="{$model['address']|default=''}" validate-required="required:请填写旅行社地址" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="service_area"> 服务地区 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="service_area" id="service_area" class="width-100" >
                            <php> $region = D(Region)->select(); </php>
                            <volist name="region" id="vo">
                            <option value="{$vo['id']}" <if condition ="$model['service_area'] eq $vo['id']"> selected </if>>{$vo['name']}</option>
                            </volist>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="bussiness"> 业务范围 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right" style="padding-top:0.2rem;">
                        <php>$fundingType = D("FundingType")->select();</php>
                        <volist name="fundingType" id="vo">
                            <label><input type="checkbox" value="{$vo['id']}" name="bussiness[]" id="bussiness[]" <if condition="strstr($model['bussiness'], $vo['id'])" > checked</if> />{$vo['long_name']} &nbsp;&nbsp;</label>
                        </volist>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="tel"> 电话 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="电话" id="tel" name="tel"  value="{$model['tel']|default=''}" validate-required="required:请填写电话" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="justification"> 营业执照 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="file" class="width-100" placeholder="营业执照" id="justification" name="justification"  value="{$model['justification']|default=''}" validate-required="required:请填写营业执照" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
            </div>
            <if condition="ACTION_NAME eq update">
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="imgShow"></label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                    	<img src="__PUBLIC__/file/{$model['justification']}" width="120" height="60" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
            </div>
            </if>
            
            <div class="clearfix form-actions">
                <div style="margin-left: 25%;">
                    <button class="btn btn-info btn-sm" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        提交
                    </button>
                    &nbsp; &nbsp; &nbsp;
                    <button class="btn btn-sm return" type="button">
                        <i class="icon-reply bigger-110"></i>
                        返回
                    </button>
                </div>
            </div>
        </form>
    </div>
<include file="Public/ace_footer" />